#include "BasicXYchart.h"
namespace LightChart
{
    BasicXYchart::BasicXYchart(std::string title) : Chart(title), x(this), y(this)
    {
	x.set_label(std::string("x"));
	y.set_label(std::string("y(x)"));
	restoreGlobalSettings();
    }
    void BasicXYchart::restoreGlobalSettings()
    {
	const GlobalChartSettings& globalSettings = GlobalChartSettings::get_instance();
	title = globalSettings.chartTitle;
	windowWidth = globalSettings.width;
	windowHeight = globalSettings.height;
	bgColor = globalSettings.bgColor;
    }
    std::vector<Axis*> BasicXYchart::get_axes()
    {
	std::vector<Axis*> axes;
	axes.push_back(&x);
	axes.push_back(&y);
	return axes;
    }
}

